{% load future wenlincms_tags wlcore_tags report_tags %}

<div class="report-box">
    <h3 class="report-title">基本注册信息</h3>
    <table class="report-table">
        <tbody>
        {% if el_name_history %}
        <tr>
            <td class="td1">曾用名：</td>
            <td class="td2" colspan="3">{{ el_name_history }}</td>
        </tr>
        {% endif %}

        <tr>
            <td class="td1">统一社会信用代码 ：</td>
            <td class="td2" colspan="3">{{ el_post.UNISCID|elweizhi }}</td>
        </tr>
        <tr>
            <td class="td1">工商注册号：</td>
            <td class="td2">{{ el_post.REGNO|elweizhi }}</td>
            <td class="td1">法人代表：</td>
            <td class="td2">{{ el_post.faren|elweizhi }}</td>
        </tr>
        <tr>
            <td class="td1">注册资本：</td>
            <td class="td2">{{ el_post.ent_basic.REGCAP|elfloat:1|elweizhi }} 万</td>
            <td class="td1">注册资本币种：</td>
            <td class="td2">
                {% if el_post.ent_basic.REGCAPCUR %}
                {{ el_post.ent_basic.REGCAPCUR }}
                {% else %}
                人民币
                {% endif %}
            </td>
        </tr>
        <tr>
            <td class="td1">经营状态：</td>
            <td class="td2">{{ el_post.ent_basic.get_ENTSTATUS_display|elweizhi }}</td>
            <td class="td1" style="width: 120px;">企业（机构）类型：</td>
            <td class="td2">{{ el_post.ent_basic.ENTTYPE|elweizhi }}</td>
        </tr>
        <tr>
            <td class="td1">注册日期：</td>
            <td class="td2">{{ el_post.ent_basic.ESDATE|date:"Y-m-j"|elweizhi }}</td>
            <td class="td1">经营期限：</td>
            <td class="td2">{{ el_post.ent_basic.OPFROM|date:"Y-m-j"|elweizhi }}
                至 {{ el_post.ent_basic.OPTO|date:"Y-m-j"|elweizhi }}
            </td>
        </tr>
        <tr>
            <td class="td1">所在地：</td>
            <td class="td2">{{ el_post.ent_class.region_id.fulltitle|elweizhi }}</td>
            <td class="td1">通讯地址(住所)：</td>
            <td class="td2">{{ el_post.ent_basic.DOM|elweizhi }}</td>
        </tr>
        <tr>
            <td class="td1">注册机关：</td>
            <td class="td2">{{ el_post.ent_basic.REGORG|elweizhi }}</td>
            <td class="td1">监管工商所：</td>
            <td class="td2">{{ el_post.ent_basic.LOCALADM|elweizhi }}</td>
        </tr>
        {% if el_post.ent_basic.ORIREGNO or el_post.ent_basic.RECCAP %}
        <tr>
            <td class="td1">原注册号 ：</td>
            <td class="td2">{{ el_post.ent_basic.ORIREGNO|elweizhi }}</td>
            <td class="td1">实收资本(万元) ：</td>
            <td class="td2">{{ el_post.ent_basic.RECCAP|elweizhi }}</td>
        </tr>
        {% endif %}
        {% if el_post.ent_basic.EMPNUM or el_post.ent_basic.ENTPROPERTY %}
        <tr>
            <td class="td1">员工人数 ：</td>
            <td class="td2">{{ el_post.ent_basic.EMPNUM|elweizhi }}</td>
            <td class="td1">企业性质 ：</td>
            <td class="td2">{{ el_post.ent_basic.get_ENTPROPERTY_display|elweizhi }}</td>
        </tr>
        {% endif %}
        <tr>
            <td class="td1">联系电话 ：</td>
            <td class="td2">{{ el_post.ent_basic.TEL|elweizhi }}</td>
            <td class="td1">核准日期 ：</td>
            <td class="td2">{{ el_post.ent_basic.APPRDATE|elweizhi }}</td>
        </tr>
        <tr>
            <td class="td1">邮箱 ：</td>
            <td class="td2">{{ el_post.ent_basic.EMAIL|elweizhi }}</td>
            <td class="td1">经营场所 ：</td>
            <td class="td2">{{ el_post.ent_basic.OPLOC|elweizhi }}</td>
        </tr>
        {% if el_post.ent_basic.DOMPRORIGHT or el_post.ent_basic.INSFORM %}
        <tr>
            <td class="td1">住所产权 ：</td>
            <td class="td2">{{ el_post.ent_basic.get_DOMPRORIGHT_display|elweizhi }}</td>
            <td class="td1">设立方式 ：</td>
            <td class="td2">{{ el_post.ent_basic.get_INSFORM_display|elweizhi }}</td>
        </tr>
        {% endif %}
        {% if el_post.ent_basic.PARNUM or el_post.ent_basic.LIMPARNUM %}
        <tr>
            <td class="td1">合伙人数 ：</td>
            <td class="td2">{{ el_post.ent_basic.PARNUM|elweizhi }}</td>
            <td class="td1">有限合伙人数 ：</td>
            <td class="td2">{{ el_post.ent_basic.LIMPARNUM|elweizhi }}</td>
        </tr>
        {% endif %}
        {% if el_post.ent_basic.PARFORM or el_post.ent_basic.EXENUM %}
        <tr>
            <td class="td1">合伙方式 ：</td>
            <td class="td2">{{ el_post.ent_basic.get_PARFORM_display|elweizhi }}</td>
            <td class="td1">执行人数 ：</td>
            <td class="td2">{{ el_post.ent_basic.EXENUM|elweizhi }}</td>
        </tr>
        {% endif %}
        <!--<tr>-->
        <!--<td class="td1">经济行业分类 ：</td>-->
        <!--<td class="td2" colspan="3">{{ el_post.ent_class.nic_id.fulltitle|elweizhi }}</td>-->
        <!--</tr>-->

        <!--{% if el_post.ent_class.seic_id %}-->
        <!--<tr>-->
        <!--<td class="td1">战兴产业分类 ：</td>-->
        <!--<td class="td2" colspan="3">{{ el_post.ent_class.seic_id.fulltitle|elweizhi }}</td>-->
        <!--</tr>-->
        <!--{% endif %}-->
        {% if el_post.ent_basic.ABUITEM %}
        <tr>
            <td class="td1">许可经营项目：</td>
            <td class="td2" colspan="3">{{ el_post.ent_basic.ABUITEM|elweizhi }}</td>
        </tr>
        {% endif %}
        {% if el_post.ent_basic.CBUITEM %}
        <tr>
            <td class="td1">一般经营项目：</td>
            <td class="td2" colspan="3">{{ el_post.ent_basic.CBUITEM|elweizhi }}</td>
        </tr>
        {% endif %}
        <tr>
            <td class="td1" style="width: 120px;">经营（业务）范围：</td>
            <td class="td2" colspan="3">{{ el_post.ent_basic.OPSCOPE|elweizhi }}</td>
        </tr>
        </tbody>
    </table>
</div>

{% if el_cancel %}
<div class="report-box hidetrbox">
    <h3 class="report-title">注销信息</h3>
    <table class="report-table ">
        <tr>
            <th width="100">注销日期</th>
            <th width="200">注销原因</th>
            <th width="300">注销机关</th>
        </tr>
        <tr class="hidetr">
            <td>{{ el_cancel.CANDATE|date:"Y-m-j"|elweizhi }}</td>
            <td>{{ el_cancel.get_CANREA_display|elweizhi }}</td>
            <td>{{ el_cancel.CANAUTH|elweizhi }}</td>
        </tr>
    </table>
</div>
{% endif %}

{% if el_revoke %}
<div class="report-box hidetrbox" id="biangeng">
    <h3 class="report-title">吊销信息</h3>
    <table class="report-table ">
        <tr>
            <th width="100">吊销日期</th>
            <th width="200">违法行为</th>
            <th width="300">吊销依据</th>
        </tr>
        <tr class="hidetr">
            <td>{{ el_revoke.REVDATE|date:"Y-m-j"|elweizhi }}</td>
            <td>{{ el_revoke.ILLEGACT|elweizhi }}</td>
            <td>{{ el_revoke.REVBASIS|elweizhi }}</td>
        </tr>
    </table>
</div>
{% endif %}

<div class="report-box hidetrbox">
    <h3 class="report-title">股东信息</h3>
    <span class="report-numallbox"><span class="report-numbox">{{ el_invs.count|elweizhi:5 }}</span>条</span>

    <div class="hidetr_btn" val="0">&or;&nbsp;显示全部</div>
    <table class="report-table ">
        <tr>
            <th width="220">股东名称</th>
            <th width="100">认缴出资额（万）</th>
            <th width="100">实缴出资额（万）</th>
            <th width="50">出资币种</th>
            <th width="50">出资比例</th>
            <th width="60">出资日期</th>
            <th width="50">出资方式</th>
        </tr>
        {% for res in el_invs %}
        <tr class="hidetr">
            {% elcombytitle res.INV as resobj %}
            {% if resobj %}
            <td><a class="otherentatag" href="{{ resobj.get_report_url }}{{ res.INV }}"
                   target="_blank">{{ res.INV }}</a></td>
            {% else %}
            <td>{{ res.INV }}</td>
            {% endif %}
            <td class="cf3">{{ res.SUBCONAM|elfloat:1|elweizhi }}</td>
            <td class="cf3">{{ res.ACCONAM|elfloat:1|elweizhi }}</td>
            <td>{{ res.CURRENCY|elweizhi }}</td>
            <td class="cf3">{{ res.CONPROP|elfloat:3|elweizhi }}</td>
            <td>{{ res.CONDATE|date:"Y-m-j"|elweizhi }}</td>
            <td>{{ res.get_CONFORM_display|elweizhi }}</td>
        </tr>
        {% endfor %}
    </table>
</div>

<div class="report-box hidetrbox">
    <h3 class="report-title">高管信息</h3>
    <span class="report-numallbox"><span class="report-numbox">{{ el_managers.count|elweizhi:5 }}</span>条</span>

    <div class="hidetr_btn" val="0">&or;&nbsp;显示全部</div>
    <table class="report-table ">
        <tr>
            <th>姓名</th>
            <th>职务</th>
            <th>性别</th>
            <th>出生年份</th>
            <th>任职自</th>
            <th>任职至</th>
        </tr>
        {% for manager in el_managers %}
        <tr class="hidetr">
            <td>{{ manager.NAME }}</td>
            <td>{{ manager.get_POSITION_display|elweizhi }}</td>
            <td>{{ manager.get_SEX_display|elweizhi }}</td>
            <td>{{ manager.birthday|elweizhi }}</td>
            <td>{{ manager.OFFHFROM|date:"Y-m-j"|elweizhi }}</td>
            <td>{{ manager.OFFHTO|date:"Y-m-j"|elweizhi }}</td>
        </tr>
        {% endfor %}
    </table>
</div>

<div class="report-box hidetrbox">
    <h3 class="report-title">注册变更历史</h3>
    <span class="report-numallbox"><span class="report-numbox">{{ el_modifys.count|elweizhi:5 }}</span>条</span>

    <div class="hidetr_btn" val="0">&or;&nbsp;显示全部</div>
    <table class="report-table ">
        <tr>
            <th width="100">变更日期</th>
            <th width="200">变更项</th>
            <th width="300">变更前</th>
            <th width="300">变更后</th>
        </tr>
        {% for modify in el_modifys %}
        <tr class="hidetr">
            <td>{{ modify.ALTDATE|date:"Y-m-j"|elweizhi }}</td>
            <td>{{ modify.get_ALTITEM_display|elweizhi }}</td>
            <td>{{ modify.ALTBE|elweizhi }}</td>
            <td>{{ modify.ALTAF|elweizhi }}</td>
        </tr>
        {% endfor %}
    </table>
</div>

<script>
    hidetrbox();
    hrefortab();
</script>
